import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/global.less'

import axios from 'axios'
// 设置 axios 的请求根路径
axios.defaults.baseURL = 'http://big-event-vue-api-t.itheima.net'
//把 axios 挂载到 Vue.prototype 上
Vue.prototype.$http = axios



//  引入ElementUI 组件 
import ElementUI from 'element-ui';
// 引入ElementUI 样式 
import 'element-ui/lib/theme-chalk/index.css';
// 注册ElementUI 
Vue.use(ElementUI);

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
